
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGForeground.h>
#include <OpenSG/OSGForegroundBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Foreground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_Foreground()
{
    scope* osg_ForegroundBase_scope = new scope(
    class_< osg::ForegroundBase, bases< osg::AttachmentContainer > , boost::noncopyable >("ForegroundBase", no_init)
//        .def_readonly("ActiveFieldMask", &osg::ForegroundBase::ActiveFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ForegroundBase::MTInfluenceMask)
        .def("getClassType", &osg::ForegroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ForegroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ForegroundBase::*)() )&osg::ForegroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ForegroundBase::*)() const)&osg::ForegroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ForegroundBase::getContainerSize)
        //.def("getSFActive", &osg::ForegroundBase::getSFActive, return_value_policy< copy_const_reference >())
        //.def("getActive", (bool& (osg::ForegroundBase::*)() )&osg::ForegroundBase::getActive, return_value_policy< copy_const_reference >())
        .def("getActive", (const bool& (osg::ForegroundBase::*)() const)&osg::ForegroundBase::getActive, return_value_policy< copy_const_reference >())
        .def("setActive", &osg::ForegroundBase::setActive)
        .def("getBinSize", &osg::ForegroundBase::getBinSize)
        .def("copyToBin", &osg::ForegroundBase::copyToBin)
        .def("copyFromBin", &osg::ForegroundBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::ForegroundBase::NextFieldId;
    scope().attr("ActiveFieldId") = (int)osg::ForegroundBase::ActiveFieldId;

    delete osg_ForegroundBase_scope;

    class_< osg::Foreground, bases< osg::ForegroundBase > , boost::noncopyable, osg::ForegroundRefPtr >("Foreground", no_init)
        .def("getClassname", &osg::Foreground::getClassname)
        .def("changed", &osg::Foreground::changed)
        .def("dump", &osg::Foreground::dump, osg_Foreground_dump_overloads_0_2())
        .def("draw", &osg::Foreground::draw)
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::ForegroundPtr>();
    implicitly_convertible<osg::ForegroundRefPtr, osg::ForegroundPtr>();
    implicitly_convertible<osg::ForegroundPtr, osg::AttachmentContainerPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::ForegroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ForegroundPtr>);
}

